package com.fruit.pojo.order;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.fruit.pojo.user.Address;
import com.fruit.pojo.user.ComAccount;

/**
 * 
* 类名称：订单
* @version 1.0
 */
public class Order {
	
	
	//订单表对应字段
	private long id;
	private String orderCode;//订单编号
	private String codePre;
	private String codeSuf;
	private long transactionId;//支付id
	private int userId;
	private int supplier;//供货商
	private int addressId;//发货地址ID
	private String type;
	private String orderTyp;
	private String state; //订单状态:00-未付款;01-已付款;02-待发货;03-待收货;04-已完成;05-已取消;06-申请退款;07-已退款;08-申请退货;09-已退货
	private BigDecimal totalPrice;//商品总价
	private BigDecimal reservePrice;//订金
	private BigDecimal finalPrice;//尾款
	private BigDecimal transitPrice;//运费
	private BigDecimal realPrice;//实际付款金额
	private String leaveMessage;//留言
	private String isAdvanceState;//是否预售
	private String remittanceCode;//汇付识别码 
	private String remark;//描述
	private String stateName;
	private String closingTime;//成交时间
	private String payTime;//付款时间
	private String createTime;
	private String tag;
	private String isRefund;//退款状态 00 已结束  01 退款中
	private long refundId;//退款ID
	private String deliveryTime;//发货时间
	private String expectDeliveryTime;//预计发货时间
	private String dispatching;//配送方式
    private long version;
	private String payMode;
	private String payType;
	private String invoiceType;
	private String refundState;
	private List<OrderGoods> orderGoods = new ArrayList<OrderGoods>();//商品信息
	private List<OrderGood> orderGood = new ArrayList<OrderGood>();//商品信息
	private Invoice invoice;
	private String supplierName;
	//收货地址
	private Address address;
	private ComAccount account;
	private int goodsIds[];
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCodePre() {
		return codePre;
	}
	
	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public void setCodePre(String codePre) {
		this.codePre = codePre;
	}

	public String getCodeSuf() {
		return codeSuf;
	}

	public void setCodeSuf(String codeSuf) {
		this.codeSuf = codeSuf;
	}


	public long getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(long transactionId) {
		this.transactionId = transactionId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getSupplier() {
		return supplier;
	}

	public void setSupplier(int supplier) {
		this.supplier = supplier;
	}

	public int getAddressId() {
		return addressId;
	}

	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public BigDecimal getReservePrice() {
		return reservePrice;
	}

	public void setReservePrice(BigDecimal reservePrice) {
		this.reservePrice = reservePrice;
	}

	public BigDecimal getFinalPrice() {
		return finalPrice;
	}

	public void setFinalPrice(BigDecimal finalPrice) {
		this.finalPrice = finalPrice;
	}

	public BigDecimal getTransitPrice() {
		return transitPrice;
	}

	public void setTransitPrice(BigDecimal transitPrice) {
		this.transitPrice = transitPrice;
	}

	public BigDecimal getRealPrice() {
		return realPrice;
	}

	public void setRealPrice(BigDecimal realPrice) {
		this.realPrice = realPrice;
	}

	public String getLeaveMessage() {
		return leaveMessage;
	}

	public void setLeaveMessage(String leaveMessage) {
		this.leaveMessage = leaveMessage;
	}

	public String getIsAdvanceState() {
		return isAdvanceState;
	}

	public void setIsAdvanceState(String isAdvanceState) {
		this.isAdvanceState = isAdvanceState;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getClosingTime() {
		return closingTime;
	}

	public void setClosingTime(String closingTime) {
		this.closingTime = closingTime;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getDeliveryTime() {
		return deliveryTime;
	}

	public void setDeliveryTime(String deliveryTime) {
		this.deliveryTime = deliveryTime;
	}

	public String getExpectDeliveryTime() {
		return expectDeliveryTime;
	}

	public void setExpectDeliveryTime(String expectDeliveryTime) {
		this.expectDeliveryTime = expectDeliveryTime;
	}

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public List<OrderGoods> getOrderGoods() {
		return orderGoods;
	}

	public void setOrderGoods(List<OrderGoods> orderGoods) {
		this.orderGoods = orderGoods;
	}

	public String getDispatching() {
		return dispatching;
	}

	public void setDispatching(String dispatching) {
		this.dispatching = dispatching;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public ComAccount getAccount() {
		return account;
	}

	public void setAccount(ComAccount account) {
		this.account = account;
	}

	public List<OrderGood> getOrderGood() {
		return orderGood;
	}

	public void setOrderGood(List<OrderGood> orderGood) {
		this.orderGood = orderGood;
	}

	public String getOrderTyp() {
		return orderTyp;
	}

	public void setOrderTyp(String orderTyp) {
		this.orderTyp = orderTyp;
	}

	public String getPayMode() {
		return payMode;
	}

	public void setPayMode(String payMode) {
		this.payMode = payMode;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

	public String getIsRefund() {
		return isRefund;
	}

	public void setIsRefund(String isRefund) {
		this.isRefund = isRefund;
	}

	public long getRefundId() {
		return refundId;
	}

	public void setRefundId(long refundId) {
		this.refundId = refundId;
	}

	public Invoice getInvoice() {
		return invoice;
	}

	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}

	public String getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(String invoiceType) {
		this.invoiceType = invoiceType;
	}

	public String getRemittanceCode() {
		return remittanceCode;
	}

	public void setRemittanceCode(String remittanceCode) {
		this.remittanceCode = remittanceCode;
	}

	public String getRefundState() {
		return refundState;
	}

	public void setRefundState(String refundState) {
		this.refundState = refundState;
	}

	public int[] getGoodsIds() {
		return goodsIds;
	}

	public void setGoodsIds(int[] goodsIds) {
		this.goodsIds = goodsIds;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	
}
